package com.traffic.fuwu.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.traffic.fuwu.dao.VehAppOldDeviceMapper;
import com.traffic.fuwu.mybatis.pojo.VehAppOldDevice;
import com.traffic.fuwu.service.VehAppOldDeviceService;
@Service
public class VehAppOldDeviceImpl implements VehAppOldDeviceService{
	@Autowired
	private VehAppOldDeviceMapper vehAppOldDeviceMapper;

	@Override
	public List<VehAppOldDevice> getFindVehAppOldDevice(Map<String, Object> conditions) {
		try {
			List<VehAppOldDevice> list = vehAppOldDeviceMapper.getFindVehAppOldDevice(conditions);
			if(list !=null && list.size() != 0){
				return list;
			}
		} catch (Exception e) {
			e.printStackTrace();
		}
		return null;
	}

	@Override
	public int getFindVehAppOldDeviceCount(Map<String, Object> conditions) {
		try {
			int count = vehAppOldDeviceMapper.getFindVehAppOldDeviceCount(conditions);
			if(count != 0){
				return count;
			}
		} catch (Exception e) {
			e.printStackTrace();
		}
		return 0;
	}

}
